<template>
    <div class="main-container f fac fpc fv">
        HELLO，WORLD

        <div v-if="isShow">
            <el-button type="primary" @click="$router.push('/dragCode')">代码生成</el-button>
            <el-button type="primary" @click="$router.push('/rtc')">通信</el-button>
        </div>
    </div>
</template>

<script setup>
const isShow = ref(true)

// // 本地才显示操作按钮
// let host = window.location.hostname;
// if (host === 'localhost') {
//     isShow.value = true
// } else {
//     isShow.value = false
// }

    
</script>

<style lang="scss" scoped>
.main-container {
    width: 100%;
    height: 100vh;
    font-size: 0.5rem;
}
</style>